package b2.config
{
	public class BasicConfig
	{
		public var ratePerActivator:int;
		//邮资
		public var postage:int;
		public var adminOpenId:Array;
		public var tankBasicLevel:Array;
		public var tankBasicLevelColor:Array;
		public var tankStrengthenLevel:Array;
		public var objectBasicLevel:Array;
		public var objectBasicLevelColor:Array;
		public var objectStrengthenLevel:Array;
		public var equipSuitName:Array;
		public var equipPosName:Array;
		public var goalName:Array;
		public var guideTank:Array;
		public var newPlayerPresent:Array;
		public var bonusForStandard:Array;
		public var standardName:Array;
		public var cooperationExpAdd:int;
		public var feedMessages:Array;
		
		public function BasicConfig(basicInfoXML:XMLList)
		{
			ratePerActivator = basicInfoXML.ratePerActivator;
			postage = basicInfoXML.postage;
			adminOpenId = basicInfoXML.adminOpenId.split(",");
			tankBasicLevel = basicInfoXML.tankBasicLevel.split(",");
			tankBasicLevelColor = basicInfoXML.tankBasicLevelColor.split(",");
			tankStrengthenLevel = basicInfoXML.tankStrengthenLevel.split(",");
			objectBasicLevel = basicInfoXML.objectBasicLevel.split(",");
			objectBasicLevelColor = basicInfoXML.objectBasicLevelColor.split(",");
			objectStrengthenLevel = basicInfoXML.objectStrengthenLevel.split(",");
			equipSuitName = basicInfoXML.equipSuitName.split(",");
			equipPosName = basicInfoXML.equipPosName.split(",");
			goalName = basicInfoXML.goalName.split(",");
			guideTank = basicInfoXML.guideTank.split(",");
			newPlayerPresent = basicInfoXML.newPlayerPresent.split(",");
			bonusForStandard = basicInfoXML.bonusForStandard.split(",");
			standardName = basicInfoXML.standardName.split(",");
			cooperationExpAdd = basicInfoXML.cooperationExpAdd;
			feedMessages = new Array();
			for (var i:int = 0; i < basicInfoXML.feed.message.length(); i++)
			{
				feedMessages.push(basicInfoXML.feed.message[i]);
			}
		}
		
	}
}